package org.jeecg.glr.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.persistence.Transient;

/**
 * @Description: 音柱管理
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
@Data
@TableName("glr_radio")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "音柱对象", description = "音柱表")
public class GlrRadio implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
	@ApiModelProperty(value = "id")
    private String id;
	/**设备ID 终端ID 原来的tId*/
	@Excel(name = "设备ID", width = 15)
	@ApiModelProperty(value = "设备ID")
    private String radioId;
	/**名称*/
	@Excel(name = "名称", width = 15)
	@ApiModelProperty(value = "名称")
    private String name;
	/**状态
	 * 在线	Y
	 * 离线	N
	 */
	@Excel(name = "状态", width = 15)
	@ApiModelProperty(value = "状态")
	@Dict(dicCode = "glr_radio_equipment_status")
    private String status;
	/**工作状态*/
	@Excel(name = "工作状态", width = 15)
	@ApiModelProperty(value = "工作状态")
    private String workStatus;
	/**呼叫状态*/
	@Excel(name = "呼叫状态", width = 15)
	@ApiModelProperty(value = "呼叫状态")
    private String callStatus;
	/**会话id*/
	@Excel(name = "会话id", width = 15)
	@ApiModelProperty(value = "会话id")
    private String sid;
	/**音量*/
	@Excel(name = "音量", width = 15)
	@ApiModelProperty(value = "音量")
    private Integer vol;
	/**通话编号*/
	@Excel(name = "通话编号", width = 15)
	@ApiModelProperty(value = "通话编号")
    private String phoneNumber;
	/**终端IP*/
	@Excel(name = "终端IP", width = 15)
	@ApiModelProperty(value = "终端IP")
    private String ip;
	/**服务编号*/
	@Excel(name = "服务编号", width = 15)
	@ApiModelProperty(value = "服务编号")
    private String radioServerCode;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
	@ApiModelProperty(value = "项目编号")
	private String projectCode;
	/**所属路灯*/
	@Excel(name = "所属路灯灯杆编号", width = 15)
	@ApiModelProperty(value = "所属路灯灯杆编号")
    private String lightPoleCode;
	/**音柱厂家  1世邦音柱 2雷拓音柱*/
	@Dict(dicCode = "glr_yzgs")
	@Excel(name = "音柱厂家", width = 15)
	@ApiModelProperty(value = "音柱厂家")
    private String companyCode;
	/**所属类型*/
	@Dict(dicCode = "glr_ys_type")
	@Excel(name = "所属类型", width = 15)
	@ApiModelProperty(value = "所属类型")
    private String terminalType;
	/**安装日期*/
	@Excel(name = "安装日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "安装日期")
    private Date installDate;
	/** 物料编码*/
	@Excel(name = "物料编码", width = 15)
	@ApiModelProperty(value = "物料编码")
	private String materialCode;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
	@ApiModelProperty(value = "所属公司")
    private String sysCompanyCode;

	@TableField(exist = false)
	private String statusImage;

	@TableField(exist = false)
	private String ids;

	@Transient private transient GlrRadioServer glrRadioServer; //所属雷拓服务

	@Transient private transient Integer radioStatus; //临时使用雷拓设备返回的状态
}
